package com.healthy.entity;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @author Maple.Chen
 * @date 2020年6月10日
 * @description <p>用户钱包实体类</p>
 */
@JsonIgnoreProperties(value = {"handler"})
public class YgWallet implements java.io.Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 7099550950356317843L;
	// 与用户一对一关联,补充填充id,解决resultMap必须要有<id>子标签的问题
	private String id;
	// 与用户一对一关联
	private YgUsers ygUsers;
	// 钱包余额，必须字段
	private BigDecimal surplus;  
	// 钱包积分，必须字段
	private Integer integral;    
	
	public YgWallet(){}

	public YgWallet(String id, YgUsers ygUsers, BigDecimal surplus, Integer integral) {
		super();
		this.id = id;
		this.ygUsers = ygUsers;
		this.surplus = surplus;
		this.integral = integral;
	}



	public YgUsers getYgUsers() {
		return ygUsers;
	}

	public void setYgUsers(YgUsers ygUsers) {
		this.ygUsers = ygUsers;
	}

	public BigDecimal getSurplus() {
		return surplus;
	}

	public void setSurplus(BigDecimal surplus) {
		this.surplus = surplus;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "YgWallet [surplus=" + surplus + ", integral=" + integral + "]";
	}
	
}
